<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>

</head>
<body>
	<input type="text" style="display: none" value="共${catelistsnum }个商品"
		id="cate_dis" />
	<input type="text" style="display: none" value="${catepagesum }"
		id="cate_dis2" />
	<input type="text" style="display: none" value="${catelistsnum }"
		id="cate_dis3" />
	<c:forEach items="${catelists }" var="c" varStatus="status">
		<div class="item-card" id="catelists${c.ccid }">
			<a href="ToItemShowServlet?temp=one&ccid=${c.ccid}" class="photo"> <img
				src="images/temp/${cate_img[status.index] }" alt="${c.cname }" class="cover">
				<div class="name">${c.cname }</div>
			</a>
			<div class="middle">
				<div class="price">
					<small>￥</small>${c.cprice }
				</div>
				<div class="sale">
					<a href="javascript:void(0)" onclick="addshop(${c.cid},1)">加入购物车</a>
				</div>
			</div>
			<div class="buttom">
				<div>
					销量 <b>${c.csales }</b>
				</div>
				<div>
					人气 <b>888</b>
				</div>
				<div>
					评论 <b>1688</b>
				</div>
			</div>
		</div>
	</c:forEach>
</body>
</html>


